<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>客户销售汇总表</title>
<style type="text/css">
h3{background:#ccc;padding-left:12px;}
.tab_b{border-left:1px solid #8CCD8C;border-top:1px solid #8CCD8C;border-collapse: collapse;font-size:16px;text-align:left}
.tab_b td,.tab_b th{border-bottom:1px solid #8CCD8C;border-right:1px solid #8CCD8C;padding-left:10px;line-height:21px;}
.STYLE3 {font-size: 13px;white-space:nowrap;}
</style>
<script type="text/javascript" src="${pageContext.request.contextPath}/tool/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/tool/su.js"></script>
</head>
<body>
<script type="text/javascript">
$(function(){
$(".STYLE3").textLen(15);
})
</script>
<p align="center">山东金科力电源科技有限公司&nbsp;&nbsp;客户销售汇总表&nbsp;&nbsp;&nbsp;&nbsp;${shipdate}</p></p>
<c:if test="${!empty orders}">
<table align="center" class="tab_b">
<thead>
<tr>
<th width="7%"><span class="STYLE3">客户ID</span></th>
<th width="20%"><span class="STYLE3">客户</span></th>
<th width="9%"><span class="STYLE3">业务员</span></th>
<th width="3%"><span class="STYLE3">开</span></th>
<th width="7%"><span class="STYLE3">产品ID</span></th>
<th width="15%"><span class="STYLE3">产品</span></th>
<th width="8%"><span class="STYLE3">数量</span></th>
<th width="5%"><span class="STYLE3">单价</span></th>
<th width="10%"><span class="STYLE3">金额</span></th>
<th width="6%"><span class="STYLE3">备注</span></th>
</tr>
</thead>
<c:forEach items="${orders}" var="order">
<tr align="center">
<th>${order["customerId"]}</th>
<th><span class="STYLE3">${order["cname"]}</span></th>
<th><span class="STYLE3">${order["salesman"]}</span></th>
<th>${order["invoice"]>1?1:""}</th>
<th>&nbsp;</th>
<th>小计</th>
<th>${order["totalNum"]}</th>
<th>&nbsp;</th>
<th>${order["totalPrice"]}</th>
<th>${order["desc"]}</th>
</tr>
<c:if test="${!empty order.ops}">
<c:forEach items="${order.ops}" var="op">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>${op.productid}</td>
<td><span class="STYLE3">${op.pname}</span></td>
<td>${op.num}</td>
<td>${op.opprice}</td>
<td>${op.num*op.opprice}</td>
<td>&nbsp;</td>
</tr>
</c:forEach>
</c:if>
</c:forEach>
</table>
</c:if>
</body>
</html>
